package net.hn.hnms.biz.cockpit.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import net.hn.hnms.biz.cockpit.domain.MonitoringSystem;
import net.hn.hnms.biz.cockpit.mapper.MonitoringSystemMapper;
import net.hn.hnms.biz.cockpit.service.IMonitoringSystemService;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

@Service
public class MonitoringSystemServiceImpl extends ServiceImpl<MonitoringSystemMapper, MonitoringSystem> implements IMonitoringSystemService {
    @Override
    public List<MonitoringSystem> getMonitorInfo(String mineCode) {
        List<MonitoringSystem> result = Collections.emptyList();
        result = baseMapper.selectList(new LambdaQueryWrapper<MonitoringSystem>().eq(MonitoringSystem::getMineCode, mineCode));
        return result;
    }
}
